package com.game.model.role;

import com.game.model.BaseProperty;
import com.game.model.SpecialProperty;
import com.game.model.api.*;
import com.game.model.goods.Goods;

import java.util.Map;

/**
 * @Description:怪物
 **/
public class Monster extends Role {
    private MonsterType monsterType;//类型
    private Map<Goods,Integer> rewards;//掉落奖励

    public Monster() {
        super();
    }

    public Monster(int id, String name, int level, MonsterType monsterType, BaseProperty baseProperty, SpecialProperty specialProperty, String description, Map<Goods, Integer> rewards) {
        super(id,name,level,baseProperty,specialProperty,description);
        this.monsterType = monsterType;
        this.rewards = rewards;
    }

    public MonsterType getMonsterType() {
        return monsterType;
    }

    public void setMonsterType(MonsterType monsterType) {
        this.monsterType = monsterType;
    }

    public Map<Goods, Integer> getRewards() {
        return rewards;
    }

    public void setRewards(Map<Goods, Integer> rewards) {
        this.rewards = rewards;
    }

    public String printInfo(){
        return super.getName()+".LV"+super.getLevel()+super.getBaseProperty().printInfo()+super.getSpecialProperty().printInfo();
    }
}
